//
// Created by Administrator on 2023/8/1.
//
#include <iostream>
#include <vector>
using namespace std;

class Solution {
public:
    int numberOfEmployeesWhoMetTarget(vector<int>& hours, int target) {
        // 统计出hours中有几个大于等于target
        int count = 0;
        for (int hour : hours) {
            if (hour >= target) {
                count++;
            }
        }
        return count;
    }
};

int main(){
    vector<int>hours{0,1,2,3,4};
    Solution s;
    cout << s.numberOfEmployeesWhoMetTarget(hours, 2) << endl;
    return 0;
}